package pruebas.JTabbedPane;

import javax.swing.*;

import java.awt.*;
import java.awt.event.*;

public class FormJButton extends JFrame implements ActionListener {
	JPanel control;
	JLabel lblTexto, lblNumeroSolapa;
	JTextField txtTexto, txtNumSolapa;
	JButton btnPintar;
	
	 JTabbedPane solapas;      
	 JPanel paneles[];
	 JLabel lblEtiquetasSolapas[];       // De JLabel   

	 public FormJButton() {
	        setLayout(null);
	        btnPintar = new JButton("Finalizar");
	        btnPintar.setBounds(300,250,100,30);
	        add(btnPintar);
	        btnPintar.addActionListener(this);
	 }
	    
	    public void actionPerformed(ActionEvent e) {
	        if (e.getSource()==btnPintar) {
	            System.exit(0);
	        }
	    }
	    
	    public static void main(String[] ar) {
	        FormJButton formulario1=new FormJButton();
	        formulario1.setBounds(0,0,450,350);
	        formulario1.setVisible(true);
	    }
}